package com.gegong.imr.client;

import com.gegong.imr.client.fx.view.ImrClientMainView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import de.felixroske.jfxsupport.GUIState;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@Slf4j
public class ImrClientApplication extends AbstractJavaFxApplicationSupport {


    public static void main(String[] args) {
        // GUIState.getStage().initStyle(StageStyle.UTILITY);
//        SpringApplication.run(ImrClientApplication.class, args);
        launch(ImrClientApplication.class, ImrClientMainView.class, args);
    }


    @Override
    public void beforeInitialView(Stage stage, ConfigurableApplicationContext ctx) {
        //GUIState.getStage().initStyle(StageStyle.UTILITY);
    }
}
